package com.bean;

import java.util.List;

public class ClazzBean {
    private int id;
    private String cname;

    //一对多
    private List<StudentBean> studentBeans;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public List<StudentBean> getStudentBeans() {
        return studentBeans;
    }

    public void setStudentBeans(List<StudentBean> studentBeans) {
        this.studentBeans = studentBeans;
    }

//    @Override
//    public String toString() {
//        return "ClazzBean{" +
//                "id=" + id +
//                ", cname='" + cname + '\'' +
//                '}';
//    }


    @Override
    public String toString() {
        return "ClazzBean{" +
                "id=" + id +
                ", cname='" + cname + '\'' +
                ", studentBeans=" + studentBeans +
                '}';
    }
}
